package cn.edu.xust.service.impl;


import cn.edu.xust.dao.SysLogininfoDao;
import cn.edu.xust.entity.SysLogininfoEntity;
import cn.edu.xust.service.SysLogininfoService;
import cn.edu.xust.util.PageUtils;
import cn.edu.xust.util.Query;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.Map;


@Service("sysLogininfoService")
public class SysLogininfoServiceImpl extends ServiceImpl<SysLogininfoDao, SysLogininfoEntity> implements SysLogininfoService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<SysLogininfoEntity> page = this.page(
                new Query<SysLogininfoEntity>().getPage(params),
                new QueryWrapper<SysLogininfoEntity>()
        );

        return new PageUtils(page);
    }

}